﻿using System;
using System.Linq;

namespace _23.PrintWordsInAlphabeticalOrder
{
    class PrintWordsInAlphabeticalOrder
    {
        static void Main(string[] args)
        {
            string text = "best test apple answer cop cast big";
            Console.WriteLine(text);
            string[] words = text.Split(' ');
            Array.Sort(words);
            foreach (string item in words)
            {
                Console.Write(item+" "); 
            }
            Console.WriteLine();
        }
    }
}
